<?php
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die( 'Restricted access' );

jimport( 'joomla.application.component.controller' );

class SgrhFrontController extends JController{

	function display(){
            $view = JRequest::getVar('view', 'candidato');
			$modelo = $this->getModel("candidato");
			$user =& JFactory::getUser();
			$objPessoa = $modelo->getInfoUser($user->id);
			$tpl = JRequest::getVar('tpl', null);
			if($objPessoa != null && $tpl == null && $user->gid == 18){
				$view = "detalhes";
				JRequest::setVar("idPessoa",$objPessoa->id);
			}
            JRequest::setVar('view', $view);
            parent::display();
	}
}
?>
